package com.lw.alarm.model.enums;

public enum METHOD {
	GET(0), POST(1), PUT(2), DELETE(3);

	private int value;

	METHOD(int value) {

		this.value = value;
	}

	public int value() {
		return value;
	}

	public static METHOD valueOf(int value) {
		for (METHOD m : values()) {
			if (m.value == value) {
				return m;
			}
		}
		throw new IllegalArgumentException("No matching constant for [" + value + "]");
	}
}
